package A;

import java.util.Random;

public class Test_05 {
    public static void main(String[] args) {
        Random rd = new Random();
        int number = rd.nextInt(9999)+1;
        if (number > 1000) {
            System.out.println(number);
        } else if (number > 100) {
            System.out.println("0" + number);
        } else if (number > 10) {
            System.out.println("00" + number);
        } else {
            System.out.println("000" + number);
        }
    }
}
